﻿// This code is released under the BSD license.
namespace PugLib.Functional
{
    using System;

    public static class Y
    {
        public static Func<A, R> Combine<A, R>(Func<Func<A, R>, Func<A, R>> f)
        {
            Func<A, R> g = null;
            g = f(a => g(a));
            return g;
        }
    }
}